<?php

class Model {
	
	private $db;
	
	/**
	 * Create an instance of the Model object.
	 * @param <object> $db - MYSQLI database object.
	 */
	public function __construct($db){
		if(is_object($db)){
			$this->db = $db;
		}else{
			//TODO: Throw Exception.
		}
	}
}

// INITILIZE MODEL OBJECT
$model = new Model($db);